package com.lujianfei.waterpower.ui.power.powerAdd;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;

public interface PowerAddContract {
    interface Model{

        boolean requestOpenAlbumPermissions(Context context);
    }
    interface View{

        long getId();

        void setReadOut(String readout);

        void setDate(String month);

        Context getContext();

        double getReadOut();

        double getUnitPrice();

        void setUnitPrice(String unitPrice);

        void setBitmap(Bitmap bitmap);

        void showDelete();

        void hideDelete();

        void setImageDefault();

        void setRemark(String s);

        String getRemark();
    }
    interface Presenter{

        boolean save();

        void loadData();

        void openDatePicker();

        void openImagePicker();

        void onActivityResult(int requestCode, int resultCode, Intent data);

        void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults);

        void removePhoto();
    }
}
